import {h} from "vue";

export const columns =[
    {
      label: "分类名称",
      prop: "categoryName",
      visible: true,
      filter:{
        flterType:"input",
      },
       span: 12,
    },
    {
      label: "排序",
      prop: "orderNum",
  
      span: 12,
      visible: true,
    },
    {
      label: "状态",
      prop: "status",
      
      span: 12,
      render: ({ row }: any) => {
        if(row.status==0){
          return  <el-tag type="primary">启用</el-tag>
        }
        return  <el-tag type="danger">停用</el-tag>
      },
      visible: true,
    },
    {
      label: "创建时间",
      prop: "createTime",visible: true,
    },
    
  ]

